Fix life-cycle handling of treeview columns
authorMatthias Clasen <mclasen@redhat.com>
Sat, 22 Feb 2014 03:31:16 +0000 (22:31 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 22 Feb 2014 03:31:16 +0000 (22:31 -0500)
commit4f1d9452becc18301b561d4a6fc575cfb4137911
tree3a9045ede50100b72b54d793c2d6f6705ce826ab
parentb01229db4b1b4c0d0ea29f55be575da7dd57fda0
Fix life-cycle handling of treeview columns

gtk_tree_view_remove_column was first removing the column from
its list, then call gtk_tree_view_column_unset_tree_view, which
would then call gtk_container_remove to remove its button from
the treeview. But the treeview remove implementation relied
on the column being still in the list in order to recognize
the button as 'special', so in effect the button was never
properly removed and thus, leaked.

Fix this by callling unset_tree_view before removing the
column from the list.

https://bugzilla.gnome.org/show_bug.cgi?id=724891
gtk/gtktreeview.c